{{!
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*     http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
}}

<div class="alert alert-info">
  {{t admin.stackVersions.editRepositories.info}}
</div>
<div {{bindAttr class="view.parentView.serverValidationFailed::hidden :alert :alert-warning"}}>
  {{t admin.stackVersions.editRepositories.validation.warning}}
</div>
<div class="row-fluid">
  <div class="span2"><strong>{{t common.os}}</strong></div>
  <div class="span10 row-fluid">
    <div class="span3"><strong>{{t common.name}}</strong></div>
    <div class="span9"><strong>{{t admin.cluster.repositories.baseUrl}}</strong></div>
  </div>
</div>
{{#each os in view.content.operatingSystems}}
  <div class="row-fluid os-block" {{bindAttr id="os.osType"}}>
    <div class="span2">
      {{os.osType}}
    </div>
    <div class="span10">
      {{#each repository in os.repositories}}
        <div {{bindAttr class="repository.repoName :row-fluid"}}>
          <div class="span3">{{repository.repoName}}</div>
          <div {{bindAttr class="repository.hasError:error :control-group :span9"}}>{{view App.BaseUrlTextField repositoryBinding="repository" disabledBinding="view.content.useRedhatSatellite"}}</div>
        </div>
      {{/each}}
    </div>
  </div>
{{/each}}

<div id="skip-validation">
  <label>{{view view.skipCheckBox checkedBinding="view.parentView.skipValidation"}}{{t installer.step1.advancedRepo.skipValidation.message}}
    <i class="icon-question-sign" rel="skip-validation-tooltip"
       data-toggle="tooltip" {{translateAttr title="installer.step1.advancedRepo.skipValidation.tooltip"}}></i></label>
</div>
<div id="use-redhat">
  <label>{{view Ember.Checkbox classNames="align-checkbox" checkedBinding="view.content.useRedhatSatellite"}}{{t installer.step1.advancedRepo.useRedhatSatellite.message}}
    <i class="icon-question-sign" rel="use-redhat-tooltip"
       data-toggle="tooltip" {{translateAttr title="installer.step1.advancedRepo.useRedhatSatellite.tooltip"}}></i></label>
</div>